package com.it135.citytraffic.utils;
public class ReasonsUtils {
    public static String getReason(Integer reasonCode) {
        return switch (reasonCode) {
            case 1 -> "车辆数量过多";
            case 2 -> "高峰时段";
            case 3 -> "交通事故";
            case 4 -> "施工区域";
            case 5 -> "交通管制";
            case 6 -> "天气恶劣";
            case 7 -> "道路设施缺陷";
            case 8 -> "事件或突发情况";
            case 9 -> "停车需求过高";
            case 10 -> "节假日或特殊活动";
            case 11 -> "道路管理不善";
            case 12 -> "公路收费站拥堵";
            case 13 -> "限行";
            default -> "其他";
        };
    }
}
